x86: Enable spinlock debugging earlier during boot.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Oct 2008 14:38:52 +0000 (15:38 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Oct 2008 14:38:52 +0000 (15:38 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/setup.c

index 784a833acaf978f7a792d12c6ed53ccf7784db6f..4bdae0fcd1f66bc9927f9f031734df2ece7d241d 100644 (file)
@@ -969,6 +969,7 @@ void __init __start_xen(unsigned long mbi_p)
     serial_init_postirq();
 
     BUG_ON(!local_irq_is_enabled());
+    spin_debug_enable();
 
     for_each_present_cpu ( i )
     {
@@ -1059,8 +1060,6 @@ void __init __start_xen(unsigned long mbi_p)
                         cmdline) != 0)
         panic("Could not set up DOM0 guest OS\n");
 
-    spin_debug_enable();
-
     /* Scrub RAM that is still free and so may go to an unprivileged domain. */
     scrub_heap_pages();